<template>
  <div class="home-banner">
    <div class="block">
      <el-carousel trigger="click" height="500px">
        <el-carousel-item v-for="item in bannerList" :key="item.id">
          <img :src="item.imgUrl" />
        </el-carousel-item>
      </el-carousel>
    </div>
    
  </div>
</template>

<script>
export default {
  props: ['bannerList',],
};
</script>

<style lang = "scss" scoped>
.home-banner {
   padding: 0 140px;
  height: 500px;
  .el-carousel__item img {
    width: 100%;
  }
  .el-carousel__item:nth-child(2n) {
    background-color: #99a9bf;
  }

  .el-carousel__item:nth-child(2n + 1) {
    background-color: #d3dce6;
  }
}
</style>